# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ghost-py
_pkgname=Ghost.py
pkgver=2.0.0
pkgrel=4
pkgdesc='Webkit based webclient (relies on PyQT).'
arch=('any')
groups=('blackarch' 'blackarch-webapp' 'blackarch-misc')
url='http://jeanphix.github.com/Ghost.py/'
license=('MIT')
depends=('python2' 'python2-pyqt')
makedepends=('python2-distribute')
source=("https://pypi.python.org/packages/45/ec/8d92e24faf547e43e456614c48ffcb726fc7141461cd5f4f768b8a10acde/Ghost.py-$pkgver.dev0.tar.gz")
sha512sums=('7b77525432579a0944a68f440a7411d53720a6d8bca4d3fedba73ff03d8b333801a03ba0ce2523b8497fa774b3664cc6f3ed3324e8c20aba336d568c740c847d')

package() {
  cd "$_pkgname-$pkgver.dev0"

  install -dm 755 "$pkgdir/usr/share/ghost"

  python2 setup.py install --root="$pkgdir" -O1

  find "$pkgdir" -type d -name tests -exec rm -rf {} +

  mv "$pkgdir/usr/ghost" "$pkgdir/usr/share/ghost"
}

